<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>ng-style动态改变样式 </title>
		<script src="../org/angular.min.js" ></script>
	</head>
	<body>
		<div ng-app = "hd" ng-controller = "ctrl">
			颜色：<input type="text" ng-model="color" />
			字体大小：<input type="number" ng-model="number" />
			<p ng-style="{color:color,fontSize:number+'px'}">这是测试文字</p>
		</div> 
		<script>
			var m = angular.module('hd',[]);
			m.controller('ctrl',['$scope',function($scope){
				
			}]);
		</script>
	</body>
</html>
